home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / comm1 / intsdkss.lha / include / sys / ioctl.h < prev    next >
C/C++ Source or Header  |  1996-04-09  |  2KB  |  55 lines

  1. /*
  2. ** inet ioctl() operations.  Here rather than in more sensible places
  3. ** mostly for Unix compatibility.
  4. */
  5. #ifndef SYS_IOCTL_H
  6. #define SYS_IOCTL_H
  7.  
  8. #ifndef SYS_TTYCHARS_H
  9. #include <ttychars.h>
  10. #endif
  11.  
  12. #ifndef __SASC
  13. #ifndef LATTICE
  14. #include <sgtty.h>
  15. #endif
  16. #endif
  17.  
  18. #define IOCTL(type, op) (((type)<<8) | ((op)&0xff))
  19. #define ROUTE    'r'
  20. #define NETIF    'i'
  21. #define MISC    'm'
  22.  
  23. #define    SIOCADDRT    IOCTL(ROUTE, 1)    /* add routing entry to list    */
  24. #define    SIOCDELRT    IOCTL(ROUTE, 2)    /* delete routing entry     */
  25.  
  26. #define    SIOCSIFADDR    IOCTL(NETIF, 3)    /* set interface address    */
  27. #define    SIOCGIFADDR    IOCTL(NETIF, 4)    /* get interface address    */
  28. #define    SIOCSIFDSTADDR    IOCTL(NETIF, 5)    /* set interface dest address    */
  29. #define    SIOCGIFDSTADDR    IOCTL(NETIF, 6)    /* get interface dest address    */
  30. #define    SIOCSIFFLAGS    IOCTL(NETIF, 7)    /* set interface flags        */
  31. #define    SIOCGIFFLAGS    IOCTL(NETIF, 8)    /* get interface flags        */
  32. #define    SIOCGIFCONF    IOCTL(NETIF, 9)    /* get interface configuration    */
  33. #define    SIOCSIFMTU    IOCTL(NETIF,10)    /* get interface MTU        */
  34. #define    SIOCGIFMTU    IOCTL(NETIF,11)    /* set interface MTU        */
  35. #define    SIOCGIFBRDADDR    IOCTL(NETIF,12)    /* get interface brdcst address    */
  36. #define    SIOCSIFBRDADDR    IOCTL(NETIF,13)    /* set interface brdcst address    */
  37. #define    SIOCGIFNETMASK    IOCTL(NETIF,14)    /* get interface netmask    */
  38. #define    SIOCSIFNETMASK    IOCTL(NETIF,15)    /* set interface netmask    */
  39. #define    SIOCGIFMETRIC    IOCTL(NETIF,16)    /* set interface metric        */
  40. #define    SIOCSIFMETRIC    IOCTL(NETIF,17)    /* get interface metric        */
  41. #define SIOCSARP    IOCTL(NETIF,18)    /* set ARP resolution        */
  42. #define SIOCGARP    IOCTL(NETIF,19)    /* get ARP entry        */
  43. #define SIOCDARP    IOCTL(NETIF,20)    /* delete arp entry        */
  44. #define SIOCATMARK    IOCTL(NETIF,21)    /* OOB at mark            */
  45. #define SIOCSSLIPDEV    IOCTL(NETIF,22)    /* set slip device        */
  46.  
  47. #define FIONBIO        IOCTL(MISC, 22)
  48. #define FIONREAD    IOCTL(MISC, 23)
  49. #define FIOASYNC    IOCTL(MISC, 24)
  50.  
  51. #define SIOCSPGRP    IOCTL(MISC, 25) /* set signalled process    */
  52. #define SIOCGPGRP    IOCTL(MISC, 26)    /* get signalled process    */
  53.  
  54. #endif
  55.